package com.zygh.policeasset.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zygh.policeasset.mapper.FileModificationMapper;
import com.zygh.policeasset.pojo.FileModification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/FileModificationService.class */
public class FileModificationService {
    @Autowired
    FileModificationMapper fileModificationMapper;

    public FileModification queryById(Integer id) {
        return this.fileModificationMapper.queryById(id);
    }

    public PageInfo queryAll(int pageNum, int pageSize, Integer status) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo(this.fileModificationMapper.queryAll(status));
    }

    public int add(FileModification fileModification) {
        return this.fileModificationMapper.add(fileModification);
    }

    public int update(FileModification fileModification) {
        return this.fileModificationMapper.update(fileModification);
    }

    public int deleteById(Integer id) {
        return this.fileModificationMapper.deleteById(id);
    }

    public int updateByid(Integer id, Integer status) {
        return this.fileModificationMapper.updateByid(id, status);
    }

    public int updatedealWithByid(Integer id, Integer dealWith) {
        return this.fileModificationMapper.updatedealWithByid(id, dealWith);
    }
}